[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Class TButton
 It provides Button Objects to be used as normal GETs in GetLists
--------------------------------------------------------------------------------

 Description

 A Button Object is a new class of control to interact with Clipper's
 Get System.

 A Button allows the user to execute an action from inside the READ. So,
 you don't have to end the READ to proccess new actions. In the Window's
 world, this kind of control is known as a Command PushButton.

 In the real world when you press a button, an action ocurrs. To switch
 on the light you press a button. To swith on -and off- the computer you
 press a button. You might have the same functionality from inside READs.
 So, a Button Object uses 3 CodeBlocks, one for WHEN, one for VALID and
 another one for the ACTION to execute. When and Valid just control if
 the Button should get and loose the focus, but you use these clauses to
 perform other tasks.

 Button.ch is a header file to automatically manage TButton Objects. It
 is not necessary to write CodeBlocks as the preprocessor will do it
 automatically. If you want to include several actions at the same time,
 write them:
                  ACTION ( Action1, Action2, Action3... )

    or just call a user defined function

                  ACTION MyFunction()

 TButton Class it is NOT a Get-Cargo workaround. It is a REAL new Class.
 To use this Class _you_do_not_need any external OOPS libraries. TButton
 Class has been coded in the same way as Clipper TBrowse, TbColumn, Get
 and Error. If you want to know how to code your own new classes, and
 to learn how this class has been coded, please register.

 You can inspect a TButton Object with the debugger, as you normally do
 with other Clipper Objects. If you ask a button Object for its ClassName,
 you will get "TBUTTON":

               ? btn:ClassName()

 We do not use hungarian notation on exported instance variables as
 Clipper GET Class is not using it.

 This Class has been completely design and written using C language and
 Clipper internal functions. That means that you have very little size,
 no overhead and fastest execution.

 License

 We give this Class as try before buy. This is _not_ a demo. It works with
 no limits. If you want to get the sources to learn how to code your own
 Classes using C -and/or Clipper- and obtain support, send 30 US$ (plus
 $3 if outside of Spain) to:

                                RUNsoft
                             M.laga 40, 3.
                          29600 Marbella (MA)
                                 Spain

 We will explain you some very interesting tricks to design Classes and
 how to handle Objects from within C. Your code will run incredibly fast!

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson